package com.weiyuwqj.server.service.account.module.action.debt;

import com.weiyuwqj.api.constant.DealType;
import com.weiyuwqj.api.util.IpUtils;
import com.weiyuwqj.server.service.account.module.action.AbstractDealAction;

import java.util.Date;

/**
 * Created by zhangyong on 2017/3/24.
 * 复审扣除投资债权人的冻结资金
 */
public class DebtInvestFreezeDealAction extends AbstractDealAction {

    public DebtInvestFreezeDealAction() {
        log.setOperType(DealType.DEBT_FREEZE_DEDUCT);
    }

    @Override
    public void dealAccount() {
        log.setFrozen(log.getOperMoney().negate());
        log.setAddip(IpUtils.get());
        log.setAddtime(new Date());
        log.setBudgetType(-1);
    }
}
